package com.midou.administration.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author MrChen
 * @since 2021-03-24
 */

/**
 * 用户与优惠卷关系表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserCoupon implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "uc_id", type = IdType.AUTO)
    private Integer ucId;

    /**
     * 用户id
     */
    private Integer ucUserId;

    /**
     * 优惠券id
     */
    private Integer ucCpId;

    /**
     * 发行商家
     */
    private Integer ucBId;

    /**
     * 优惠券状态
     */
    private Integer ucState;

    /**
     * 优惠券的对象
     */
    @TableField(exist = false)
    private Coupon coupon;

    @TableField(exist = false)
    private String buId;
    @TableField(exist = false)
    private String cpContent;
    @TableField(exist = false)
    private String cpName;
    @TableField(exist = false)
    private String cePrice;
    @TableField(exist = false)
    private String buName;


}
